<%-- 
    Document   : login
    Created on : 22 juin 2010, 15:16:17
    Author     : Lou
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" href="<%= request.getContextPath()%>/css/screen.css" type="text/css" media="screen" title="css" charset="utf-8" />
        <title>XML Client</title>
    </head>
    <body>
        <div id="content">
            <p id="top">Bienvenue, merci de vous authentifier.</p>
            <div id="logo">
                <h1><a href="<%= request.getContextPath()%>">Contacts</a></h1>
            </div>
            <div class="line"></div>

            <div id="body">
                <%
                            String message = (String) request.getAttribute("flashMessage");
                            if (message != null) {
                                out.println("<div id='flash-message'>");
                                out.println(message);
                                out.println("</div>");
                            }
                            String errorMessage = (String) request.getAttribute("errorMessage");
                            if (errorMessage != null) {
                                out.println("<div id='error-message' class='error'>");
                                out.println(errorMessage);
                                out.println("</div>");
                            }
                %>
                <form id="connexion_form" action="<%= request.getContextPath()%>/index.html" method="post" accept-charset="utf-8">
                    <fieldset id="connexion" class="">
                        <legend>Connexion</legend>
                        <table class="borderless">
                            <tr><td><label for="identifiant">Identifiant</label></td><td><input type="text" name="login" id="login" size="27" /></td></tr>
                            <tr><td><label for="mot_de_passe">Mot de passe</label></td><td><input type="password" name="password" id="mot_de_passe" size="27" /></td></tr>
                            <tr><td></td><td><input type="submit" value="Connexion" /></td></tr>
                        </table>

                    </fieldset>
                    <input type="hidden" name="action" value="authentification" />
                </form>
            </div>
            <div id="footer">
                <p>&copy; Copyright 2009 Ferrand &ndash; Rabarison &mdash; Design: Lou Ferrand &ndash; Maria Rabarison, <a href="#" title="Projet Java">DagoFly</a></p>
            </div>
        </div>
    </body>
</html>
